
package com.carsite.service;

import java.util.List;

import com.carsite.service.Manager;
import com.carsite.model.Item;
import com.carsite.dao.ItemDao;

public interface ItemManager extends Manager {
    /**
     * Retrieves all of the items
     */
    public List getItems(Item item);

    /**
     * Gets item's information based on itemId.
     * @param itemId the item's itemId
     * @return item populated item object
     */
    public Item getItem(final String itemId);

    /**
     * Saves a item's information
     * @param item the object to be saved
     */
    public void saveItem(Item item);

    /**
     * Removes a item from the database by itemId
     * @param itemId the item's itemId
     */
    public void removeItem(final String itemId);
    
    public List getItemsByOrderId(final String orderId);
}

